home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PROGRAMR
/
JORF21_2.ZIP
/
CHAREX.J
< prev
next >
Wrap
Text File
|
1993-07-05
|
836b
|
23 lines
CharEx:Start
New Count, Str1, Str2
Str1="This Text will Disappear"
Str2="This Text will Appear"
Win:Add ("Char Example", 10, 25, 2, 30, Here)
Str:Put (Str1) | Show Str1
Win:Msg ("Press Enter to continue...")
Win:Pause | And pause for Effect
Win:Msg |
Count = Str:Len (Str1) | Set Counter
While (Count > 0) | While GT Zero
Move:To (1,1) | First line
Char:Del (1) | Take 1 Away
Move:To (2,1) | Second line
Char:Ins (1) | Add one, Add char
Char:Put (To:Ascii (Str:At (Str2, Count, 1)))
--Count | Decrement Count
Win:Pause(5) | Pause 5/100 seconds
Win:Msg("Press Enter to continue...")
Win:Pause | Done!
Return | Bye